package com.wx_shop.api.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperCmsColumnPub implements Serializable {
    private Integer id;

    /**
     * 自定义图片
     */
    private String image;

    /**
     * 自定义标题
     */
    private String title;

    /**
     * 栏目ID
     */
    private Integer columnId;

    /**
     * 实体ID
     */
    private Integer entityId;

    /**
     * 实体类型：pro:产品,news:文章;ad:广告
     */
    private String type;

    /**
     * 排序：倒序
     */
    private Integer sort;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 自定义图片
     */
    public String getImage() {
        return image;
    }

    /**
     * 自定义图片
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 自定义标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 自定义标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 栏目ID
     */
    public Integer getColumnId() {
        return columnId;
    }

    /**
     * 栏目ID
     */
    public void setColumnId(Integer columnId) {
        this.columnId = columnId;
    }

    /**
     * 实体ID
     */
    public Integer getEntityId() {
        return entityId;
    }

    /**
     * 实体ID
     */
    public void setEntityId(Integer entityId) {
        this.entityId = entityId;
    }

    /**
     * 实体类型：pro:产品,news:文章;ad:广告
     */
    public String getType() {
        return type;
    }

    /**
     * 实体类型：pro:产品,news:文章;ad:广告
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 排序：倒序
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 排序：倒序
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", image=").append(image);
        sb.append(", title=").append(title);
        sb.append(", columnId=").append(columnId);
        sb.append(", entityId=").append(entityId);
        sb.append(", type=").append(type);
        sb.append(", sort=").append(sort);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperCmsColumnPub other = (SuperCmsColumnPub) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getColumnId() == null ? other.getColumnId() == null : this.getColumnId().equals(other.getColumnId()))
            && (this.getEntityId() == null ? other.getEntityId() == null : this.getEntityId().equals(other.getEntityId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getColumnId() == null) ? 0 : getColumnId().hashCode());
        result = prime * result + ((getEntityId() == null) ? 0 : getEntityId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}